package main.tileMap;


import main.entities.EntityFactory;

import main.states.Play;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;


public class Planet {
	//planetas

	public final String planeta;
	public Map currentmap;
	
	public Planet(String planeta) throws SlickException{
		this.planeta = planeta;
		currentmap = new Map("res/tileset/planetas/"+planeta+"/Level_1.tmx",true);

	}
	
	public void init(GameContainer gc, StateBasedGame sbg, EntityFactory eFactory) throws SlickException{
		currentmap.init(gc, sbg,eFactory);
		
	}
	
	public void render(GameContainer gc, StateBasedGame sbg, Graphics g){
		currentmap.render(gc,sbg,g);
	}

	public void update(GameContainer gc, StateBasedGame sbg, int g) {
		currentmap.update(gc,sbg,g);
		
	}

	public void keyPressed(int key, char c) {
		currentmap.keyPressed(key, c);
		
	}

	public void keyReleased(int key, char c) {
		currentmap.keyReleased(key,c);
		
	}
	
}
